package com.example.carbonalgorithm.entity;

import com.example.carbonalgorithm.common.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Transient;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Getter
@Setter
@ApiModel("用户表")
public class SysUser extends Entity {
    @ApiModelProperty("用户名")
    private String name;
    @ApiModelProperty("昵称")
    private String nickname;
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("电话")
    private String telPhone;
    @ApiModelProperty("头像")
    private String headImage;
    @ApiModelProperty("角色类型 1 银行 2 供应商 3 企业 4 运营 ")
    private SysRole roleType;
    @ApiModelProperty("角色")
    private SysRole role;
    @ApiModelProperty("是否冻结")
    private Integer frozen;
    @ApiModelProperty("验证码")
    private String code;
    @Transient
    @ApiModelProperty(hidden = true, value = "上次登录时间")
    private Date lastGetDate;
    @ApiModelProperty("上次登录ip")
    private String lastGetIp;
}